#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1192U,36,1018U,1036U},
/*2*/{1178U,33,1019U,1035U},
/*4*/{1164U,30,1019U,1034U},
/*6*/{1150U,27,1020U,1033U},
/*8*/{1136U,23,1020U,1032U},
/*10*/{1122U,20,1020U,1031U},
/*12*/{1108U,17,1021U,1030U},
/*14*/{1094U,14,1021U,1029U},
/*16*/{1080U,10,1022U,1028U},
/*18*/{1066U,7,1022U,1027U},
/*20*/{1052U,4,1023U,1026U},
/*22*/{1038U,1,1023U,1025U},
/*24*/{1024U,-3,1024U,1024U},
/*26*/{1009U,-6,1024U,1022U},
/*28*/{995U,-9,1024U,1021U},
/*30*/{981U,-13,1025U,1020U},
/*32*/{967U,-16,1025U,1019U},
/*34*/{953U,-19,1026U,1018U},
/*36*/{939U,-22,1026U,1017U},
/*38*/{925U,-26,1027U,1016U},
/*40*/{911U,-29,1027U,1015U},
/*42*/{899U,-32,1027U,1014U},
/*44*/{887U,-35,1028U,1014U},
/*46*/{874U,-39,1028U,1013U},
/*48*/{862U,-42,1028U,1012U},
/*50*/{850U,-45,1029U,1012U},
/*52*/{832U,-48,1029U,1011U},
/*54*/{814U,-52,1029U,1010U},
/*56*/{797U,-55,1030U,1009U},
/*58*/{779U,-58,1030U,1008U},
/*60*/{761U,-61,1031U,1007U},
/*62*/{744U,-65,1031U,1006U},
/*64*/{726U,-68,1032U,1005U},
/*66*/{714U,-71,1032U,1004U},
/*68*/{702U,-74,1032U,1003U},
/*70*/{690U,-78,1032U,1003U},
/*72*/{678U,-81,1032U,1002U},
/*74*/{666U,-84,1032U,1002U},
/*76*/{649U,-88,1033U,1001U},
/*78*/{633U,-91,1033U,1000U},
/*80*/{616U,-94,1033U,1000U},
/*82*/{599U,-97,1034U,999U},
/*84*/{587U,-101,1034U,999U},
/*86*/{574U,-104,1034U,998U},
/*88*/{562U,-107,1035U,997U},
/*90*/{549U,-110,1035U,997U},
/*92*/{537U,-114,1035U,996U},
/*94*/{525U,-117,1035U,996U},
/*96*/{512U,-120,1035U,995U},
/*98*/{499U,-123,1035U,994U},
/*100*/{487U,-127,1036U,994U},
/*102*/{474U,-130,1036U,994U},
/*104*/{460U,-133,1036U,993U},
/*106*/{445U,-136,1036U,992U},
/*108*/{431U,-140,1036U,992U},
/*110*/{417U,-143,1037U,992U},
/*112*/{403U,-146,1037U,991U},
/*114*/{388U,-149,1037U,990U},
/*116*/{374U,-153,1038U,990U},
/*118*/{360U,-156,1038U,989U},
/*120*/{345U,-159,1038U,988U},
};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1054U,28,975U,1030U},
/*2*/{1051U,26,979U,1030U},
/*4*/{1049U,23,983U,1029U},
/*6*/{1046U,20,987U,1028U},
/*8*/{1044U,18,991U,1028U},
/*10*/{1041U,15,995U,1027U},
/*12*/{1039U,13,999U,1027U},
/*14*/{1036U,10,1003U,1026U},
/*16*/{1034U,7,1007U,1026U},
/*18*/{1031U,5,1011U,1025U},
/*20*/{1029U,2,1015U,1025U},
/*22*/{1026U,0,1019U,1024U},
/*24*/{1024U,-3,1024U,1024U},
/*26*/{1021U,-6,1028U,1023U},
/*28*/{1018U,-8,1032U,1022U},
/*30*/{1016U,-11,1036U,1022U},
/*32*/{1013U,-14,1040U,1021U},
/*34*/{1011U,-16,1044U,1021U},
/*36*/{1008U,-19,1048U,1020U},
/*38*/{1006U,-21,1052U,1020U},
/*40*/{1003U,-24,1056U,1019U},
/*42*/{1001U,-27,1060U,1019U},
/*44*/{998U,-29,1064U,1018U},
/*46*/{996U,-32,1068U,1018U},
/*48*/{993U,-34,1072U,1017U},
/*50*/{991U,-37,1076U,1017U},
/*52*/{987U,-40,1080U,1016U},
/*54*/{984U,-42,1084U,1016U},
/*56*/{980U,-45,1089U,1015U},
/*58*/{977U,-47,1093U,1014U},
/*60*/{973U,-50,1097U,1014U},
/*62*/{970U,-53,1101U,1013U},
/*64*/{966U,-55,1105U,1012U},
/*66*/{963U,-58,1110U,1011U},
/*68*/{960U,-61,1114U,1011U},
/*70*/{957U,-63,1119U,1010U},
/*72*/{954U,-66,1124U,1009U},
/*74*/{952U,-68,1129U,1009U},
/*76*/{948U,-71,1133U,1008U},
/*78*/{944U,-74,1138U,1007U},
/*80*/{941U,-76,1143U,1007U},
/*82*/{937U,-79,1148U,1006U},
/*84*/{935U,-81,1152U,1005U},
/*86*/{932U,-84,1156U,1005U},
/*88*/{929U,-87,1160U,1005U},
/*90*/{927U,-89,1164U,1004U},
/*92*/{924U,-92,1168U,1004U},
/*94*/{921U,-94,1172U,1003U},
/*96*/{917U,-97,1176U,1002U},
/*98*/{914U,-100,1180U,1002U},
/*100*/{911U,-102,1184U,1001U},
/*102*/{907U,-105,1188U,1000U},
/*104*/{904U,-107,1193U,1000U},
/*106*/{900U,-110,1198U,999U},
/*108*/{897U,-113,1202U,998U},
/*110*/{894U,-115,1207U,997U},
/*112*/{890U,-118,1212U,996U},
/*114*/{887U,-121,1217U,995U},
/*116*/{884U,-123,1221U,995U},
/*118*/{880U,-126,1226U,994U},
/*120*/{877U,-128,1231U,993U},
};


static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1013U,23,1032U,961U},
/*2*/{1014U,21,1031U,966U},
/*4*/{1015U,19,1031U,971U},
/*6*/{1016U,17,1030U,977U},
/*8*/{1017U,14,1029U,982U},
/*10*/{1018U,12,1028U,987U},
/*12*/{1018U,10,1028U,992U},
/*14*/{1019U,8,1027U,997U},
/*16*/{1020U,6,1026U,1003U},
/*18*/{1021U,4,1026U,1008U},
/*20*/{1022U,2,1025U,1013U},
/*22*/{1023U,0,1024U,1018U},
/*24*/{1024U,-3,1024U,1024U},
/*26*/{1024U,-5,1023U,1029U},
/*28*/{1025U,-7,1022U,1034U},
/*30*/{1026U,-9,1021U,1039U},
/*32*/{1027U,-11,1021U,1044U},
/*34*/{1028U,-13,1020U,1050U},
/*36*/{1029U,-15,1019U,1055U},
/*38*/{1029U,-18,1019U,1060U},
/*40*/{1031U,-20,1018U,1065U},
/*42*/{1033U,-22,1017U,1070U},
/*44*/{1034U,-24,1016U,1076U},
/*46*/{1036U,-26,1016U,1081U},
/*48*/{1038U,-28,1015U,1086U},
/*50*/{1038U,-30,1014U,1091U},
/*52*/{1039U,-33,1014U,1096U},
/*54*/{1039U,-35,1013U,1102U},
/*56*/{1040U,-37,1012U,1107U},
/*58*/{1041U,-39,1011U,1112U},
/*60*/{1042U,-41,1011U,1117U},
/*62*/{1043U,-43,1010U,1123U},
/*64*/{1044U,-45,1009U,1128U},
/*66*/{1044U,-47,1009U,1133U},
/*68*/{1044U,-50,1008U,1138U},
/*70*/{1044U,-52,1007U,1143U},
/*72*/{1044U,-54,1006U,1149U},
/*74*/{1045U,-56,1006U,1154U},
/*76*/{1045U,-58,1005U,1162U},
/*78*/{1045U,-60,1004U,1169U},
/*80*/{1045U,-62,1004U,1177U},
/*82*/{1045U,-65,1003U,1185U},
/*84*/{1046U,-67,1002U,1190U},
/*86*/{1046U,-69,1001U,1195U},
/*88*/{1047U,-71,1001U,1201U},
/*90*/{1048U,-73,1000U,1206U},
/*92*/{1048U,-75,999U,1211U},
/*94*/{1048U,-77,999U,1216U},
/*96*/{1048U,-79,998U,1222U},
/*98*/{1048U,-82,997U,1227U},
/*100*/{1048U,-84,996U,1232U},
/*102*/{1049U,-86,996U,1237U},
/*104*/{1050U,-88,995U,1248U},
/*106*/{1050U,-90,994U,1258U},
/*108*/{1050U,-92,994U,1268U},
/*110*/{1051U,-94,993U,1279U},
/*112*/{1051U,-97,992U,1289U},
/*114*/{1051U,-99,991U,1300U},
/*116*/{1051U,-101,991U,1310U},
/*118*/{1052U,-103,990U,1321U},
/*120*/{1052U,-105,989U,1331U},
};



TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}



/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



